<?php
Yii::import('application.components.widgets.CAuctionsPool');
class CAuctionRecommendPool extends CAuctionsPool{
	public function run(){
		echo CHtml::openTag('div',array('class'=>'auction-recommend-container'));
		echo CHtml::openTag('div',array('class'=>'auction-recommend-earlier glyphicon glyphicon-chevron-left'));
		echo CHtml::closeTag('div');
		echo CHtml::openTag('div',array('class'=>'auction-recommend-later glyphicon glyphicon-chevron-right'));
		echo CHtml::closeTag('div');
		parent::run();
		echo CHtml::closeTag('div');
		$this->addScript();
	}
	
	public function addScript(){
		Yii::app()->clientScript->registerScript('auction-recommend-container-js',"
			
		");
		Yii::app()->clientScript->registerCss('auction-recommend-container-css', "
			.auction-recommend-container{
				position:relative;
				padding-top:25px;
				padding-left:7%;
				padding-right:0;
				margin:0px auto;
			}
			.auction-recommend-later,.auction-recommend-earlier{
				width:45px;
				height:45px;
				border:solid 1px #ccc;
				position:absolute;
				z-index:1000;
				cursor:pointer;
				font-size:36px;
				text-align:center;
				padding-top:3px;
				color:#DFDFDF;
				top:78px;
			}
			.auction-recommend-earlier{
				left:16px;
			}
			.auction-recommend-later{
				right:16px;
			}		
		");
	}
}